import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import AdminIndex from '@/components/Admin/Index'
import AdminLogin from '@/components/Admin/Login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Admin',
      name: 'AdminIndex',
      component: AdminIndex
    },
    {
      path: '/Admin/Login',
      name: 'AdminLogin',
      component: AdminLogin
    }
  ],
  mode: 'history'
})
